"""
Web路由模块
提供Web界面路由
"""
from flask import Blueprint, render_template, request, jsonify, redirect, url_for
from ..core.database import db
from ..core.config import config
import os

web = Blueprint('web', __name__)


@web.route('/')
def index():
    """首页"""
    return render_template('index.html')


@web.route('/settings')
def settings():
    """设置页面"""
    return render_template('settings.html')


@web.route('/documents')
def documents():
    """文档管理页面"""
    return render_template('documents.html')


@web.route('/qa')
def qa():
    """问答页面"""
    return render_template('qa.html')


@web.route('/status')
def status():
    """状态页面"""
    return render_template('status.html')


@web.route('/first-run')
def first_run():
    """首次运行配置页面"""
    return render_template('first_run.html') 